<?php
function read_csv($filename){
$result =array();
if (($handle = fopen($filename, "r")) !== FALSE) {
    while (($data = fgetcsv($handle, 1000, ",")) !== FALSE) {
		$result[] = $data;
    }
    fclose($handle);
}
return $result;
}
?>